package com.xd.common.response;

/**
 * @author
 */
public enum CodeEnum {

    SUCCESS("0", "success"),
    FAILED("1", "failed"),

    COMMON_ACCOUNT_ERROR("1001", "账号错误"),
    COMMON_TOKEN_ERROR("1002", "token已过期"),
    COMMON_PARAM_EMPTY("1003", "必选参数为空"),
    COMMON_PARAM_ERROR("1004", "参数格式错误"),

    FILE_NOT_EXIST("1101", "文件不存在"),
    SYSTEM_UNKNOWN_ERROR("-1", "系统繁忙，请稍后再试....");

    private String code;
    private String desc;

    CodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return "CodeEnum{" + "code='" + code + '\'' + ", desc='" + desc + '\'' + '}';
    }

}